<?php

declare(strict_types=1);

namespace App\Fastapp\Model;

use Mine\MineModel;

/**
 * @property int $id 主键
 * @property int $user_id 用户id
 * @property int $currency_id 币种
 * @property int $wallet_id 钱包
 * @property string $code 标识
 * @property string $trade_no 交易单号
 * @property string $amount 金额
 * @property string $charge 手续费
 * @property int $status 审核0否1是
 * @property int $pay_automatic 自动打款0否1是
 * @property int $pay_status 到账成功0否1是
 * @property int $pay_info_id 代币为address_log_id
 * @property string $pump 抽水
 * @property \Carbon\Carbon $created_at
 * @property \Carbon\Carbon $updated_at
 */
class AccountWithdrawal extends MineModel
{
    /**
     * The table associated with the model.
     */
    protected ?string $table = 'account_withdrawal';

    /**
     * The attributes that are mass assignable.
     */
    protected array $fillable = ['id', 'user_id', 'currency_id', 'wallet_id', 'code', 'trade_no', 'amount', 'charge', 'status', 'pay_automatic', 'pay_status', 'pay_info_id', 'pump', 'created_at', 'updated_at'];

    /**
     * The attributes that should be cast to native types.
     */
    protected array $casts = ['id' => 'integer', 'user_id' => 'integer', 'currency_id' => 'integer', 'wallet_id' => 'integer', 'amount' => 'decimal:8', 'charge' => 'decimal:8', 'status' => 'integer', 'pay_automatic' => 'integer', 'pay_status' => 'integer', 'pay_info_id' => 'integer', 'pump' => 'decimal:8', 'created_at' => 'datetime', 'updated_at' => 'datetime'];
}
